-
Notifications
You must be signed in to change notification settings - Fork 28
started implementing resolutions the TODO list #50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…porting variables and handling JSON config parsing in bar.sh
|
might as well give the clanker a shot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR implements JSON configuration support and fixes issues with separator and custom_dir config options. It adds the ability to use config.json (when jq is available) as an alternative to the bash-based config file, and refactors the bar building logic to properly handle separators between modules.
Key changes:
- Added JSON config file support with automatic detection and preference when
jqis available - Exported SEPARATOR and CUSTOM_DIR variables to make them functional
- Refactored separator handling to use conditional logic instead of string truncation
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 13 comments.
| File | Description |
|---|---|
| dwmbar | Added JSON config detection logic and load_config() function to parse both JSON and bash configs, with periodic reloading |
| bar.sh | Added duplicate JSON config parsing logic and rewrote get_bar() to build the status bar with proper separator handling |
|
TL;DR: duplication between |
…fixed the config dir with a slight discrepance, and added a new image showcasing the different seperators you can make
cb0540e to
88251e6
Compare
|
sorry lol... still getting the hang of this git shi |
thytom
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good :) commits are good too.
* fix: make separator and custom_dir config options actually work by exporting variables and handling JSON config parsing in bar.sh * feature: seperated archupdates into archupdates and archupdates-aur, fixed the config dir with a slight discrepance, and added a new image showcasing the different seperators you can make * fix: update todo file * fix: fix CI tests with aur seperated from pacman
currently what I've changed:
fix: make separator and custom_dir config options actually work by exporting variables and handling JSON config parsing in bar.sh
implementation/fix: make the custom modules dir actually work
TODO:
make separate
archupdatesandarchupdates-aurmodulesparallelization/per-module delays